<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterConfigCouponBrand extends Migrator
{
    public function up()
    {
        \app\model\Config::findOrCreate([
            'type'  => 'coupon',
            'name'  => '权益全局副标题显示方式',
            'field' => 'brand_subtitle',
            'value' => '1', //1 自定义  2 折扣值
        ]);
    }

    public function down()
    {
        \app\model\Config::destroy(['type' => 'coupon', 'field' => 'brand_subtitle']);
    }
}
